46a1ffb6f52add40978cfc3a408c8b79c6270ea2,tests/frontend/org/voltdb/utils/TestPolygonFactory.java,TestPolygonFactory,makeStarPolygons,#GeographyPointValue#GeographyPointValue#number#number#number#number#number#number#,150
Before Change
double ymul) {
List<List<List<GeographyValue>>> answer = new ArrayList<List<List<GeographyValue>>>();
int npoints = maxNumPoints - minNumPoints + 1;
for (int idx = 0; idx < npoints; idx += 1) {
GeographyPointValue column = x.mul(xmul*idx);
List<List<GeographyValue>> oneSize = new ArrayList<List<GeographyValue>>();
for (int irdx = 0; irdx < numIRLevels; irdx += 1) {
GeographyPointValue irCenter = y.mul(numIRLevels*ymul*irdx);
List<GeographyValue> oneRadius = new ArrayList<GeographyValue>();
for (int hidx = 0; hidx < numHoleSizeLevels; hidx += 1) {
GeographyPointValue hCenter = irCenter.add(y.mul(ymul*hidx));
GeographyPointValue center = firstCenter.add(column.add(hCenter));
GeographyPointValue firstVertex = firstFirstVertex.add(center);
oneRadius.add(PolygonFactory.CreateStar(center, firstVertex, idx + minNumPoints, (irdx + 1)*0.2, hidx*0.2));
}
After Change
double xmul,
double ymul) {
List<List<List<GeographyValue>>> answer = new ArrayList<List<List<GeographyValue>>>();
for (int numSides = minNumPoints; numSides <= maxNumPoints; numSides += 1) {
int idx = numSides - minNumPoints;
// The x coordinate is xmul * idx
GeographyPointValue column = x.mul(xmul*idx);
List<List<GeographyValue>> oneSize = new ArrayList<List<GeographyValue>>();
for (int ratioLevel = 0; ratioLevel < numIRLevels; ratioLevel += 1) {
GeographyPointValue irCenter = column.add(y.mul(numHoleSizeLevels*ymul*ratioLevel));
List<GeographyValue> oneRadius = new ArrayList<GeographyValue>();
for (int holeNumber = 0; holeNumber < numHoleSizeLevels; holeNumber += 1) {
GeographyPointValue offset = irCenter.add(y.mul(ymul*holeNumber));